package com.ap.core.domain;

import com.ap.core.common.types.TransactionChannelType;
import org.hibernate.annotations.TypeDef;

import javax.persistence.*;

/**
 * User: Rohit.Dixit
 */
@Entity
@Table(name = "T_MESSAGE_TIMEOUT")
@AttributeOverride(name = "id",column = @Column(name = "MESSAGE_TYPE_CODE"))
@TypeDef(name = "id",  typeClass = String.class)
public class MessageTimeOut extends Identifiable<String>{

	private static final long serialVersionUID = 8339070221409552886L;

	@Column(name = "TRANSACTION_CHANNEL_CODE")
	@Enumerated(EnumType.STRING)
    private TransactionChannelType channelCode;
	
	
	@Column(name = "TIMEOUT_SECONDS")
    private Integer timeOutSeconds;
   

    private MessageTimeOut(){}

    public TransactionChannelType getChannelCode() {
        return channelCode;
    }

    public Integer getTimeOutSeconds() {
        return timeOutSeconds;
    }
}